package com.ddone.ioc.demo.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author ddone
 * @date 2024/3/19-12:28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
public class User {
    private Integer id;
    @Value("${jdbc.username}")
    private String name;
    private Integer age;
    private Address address;
}
